package game_controller_config;

import java.awt.Dimension;
import java.awt.Frame;

public class TSelectUI extends Frame {
	  private TSelectPApplet papplet;
	 
	  public TSelectUI(String title, int w, int h) {
	    papplet = new TSelectPApplet();
	    papplet.frame = this;
	    // So we can resize the frame to get the sketch canvas size reqd.
	    setResizable(true);
	    setTitle(title);
	    setLocation(20, 40);
	    papplet.appWidth = w;
	    papplet.appHeight = h;
	 
	    // Set the papplet size preferences
	    papplet.resize(papplet.appWidth, papplet.appHeight);
	    papplet.setPreferredSize(new Dimension(papplet.appWidth, papplet.appHeight));
	    papplet.setMinimumSize(new Dimension(papplet.appWidth, papplet.appHeight));
	    add(papplet);
	    papplet.init();
	    
	    papplet.initControlIO();
	    
	    pack();
	    setVisible(true);
	  }

	
}